home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / STRREV.C < prev    next >
Encoding:
Text File  |  1991-08-05  |  235 b   |  12 lines

  1. /* strrev.c  From TC Bible page 297  Use strrev to reverse the order of
  2. characters in a string */
  3.  
  4. main()
  5. {
  6.     char buf[80];
  7.     printf("Enter a string: ");
  8.     gets(buf);
  9.     strrev(buf);
  10.     printf("reversed string is:\n%s\n", buf);
  11. }
  12.